public class Singelton06 {
    private Singelton06() {
        System.out.println("Singelton06");
    }

    private static class SingeltonHolder {
        private static Singelton06 singelton = new Singelton06();
    }

    public static Singelton06 getInstance() {
        return SingeltonHolder.singelton;
    }

    public static void main(String[] args) {
        Singelton06 instance1 = Singelton06.getInstance();
        Singelton06 instance2 = Singelton06.getInstance();
        System.out.println(instance1 == instance2);
    }
}
